package com.hange.ymcc.api;

import com.hange.ymcc.doc.CourseDoc;
import com.hange.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "service-search")
public interface SearchApi {

    @PostMapping("/esCourse/save")
    JSONResult save(@RequestBody CourseDoc courseDoc);
}
